#! /usr/bin/python
# Filename:raising.py

class ShortInputException(Exception):
	def __init__(self,length,atleast):
		Exception.__init__(self);
		self.length = length;
		self.atleast = atleast;


try:
	s = raw_input('Enter something:');
	if len(s) < 3:
		raise ShortInputException(len(s),3);
except EOFError:
	print '\nWhy did you do an EOF error on me?';
except ShortInputException, x:
	print 'The input length is %d,and the atleast length is %d' % (x.length,x.atleast);

else:
	print '\nNo exception was raised!';
